<?php
namespace app\home\validate;
use think\Validate;
class Login extends Validate
{
    protected $rule = [
        'nickname' => 'require|token',
        'password' => 'require'
    ];

    protected $message = [
        'nickname.require' =>'账号为空',
        'password.require' => '密码为空',
    ];
}
